dense_to_csr Function

public function dense_to_csr(a, err) result(rst)

Converts a dense matrix to a CSR matrix.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:,:) :: a

The dense matrix to convert.

class(errors), intent(inout), optional, target :: err

The error object to be updated.

Return Value type(csr_matrix)

The CSR matrix.